home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
GAUGES
/
DBMETER
/
README.TXT
< prev
Wrap
Text File
|
1996-09-09
|
4KB
|
80 lines
Tdbmeter component Version 1.0 for Delphi 2.0
What's diz ?
A Delphi component called Tdbmeter.
It can be used to show progresses or levels or something like that.
It looks like a horizontal or vertical group of LED's in up to three different colors (by
default green, yellow and red) to show the position-property on that LED-panel.
For details, look at DESCRIPTION below in this text or just start the sample application,
where you can modify most of the properties and see what they mean.
(C) 1996, by Markus Stephany. All rights reserved.
You can use this component free of charge in your public domain, freeware and
shareware programs.
You must not use this component in any commercial applications withaut my permission.
You may give copies to others by copying the original, unmodified zip file for free.
If there are any questions, comments or suggestions, or if you find any bugs, please send a
mail in English or even better in German (cause my English doesn't take me everywhere) to :
MirBir.St@T-Online.de
And if you understand the german language, you may visit my homepage at :
http://home.t-online.de/home/MirBir.St/
===========
DESCRIPTION
===========
1. Installation
(Cause I don't know the english Delphi-version, I can't give any guaranty whether the
translation of menu-entries will be correct.)
- Extract or copy dbm.pas and dbm.dcr into your components-directory.
- Choose KOMPONENTE (COMPONENT) / INSTALLIEREN (INSTALL)
- Click the HINZUF▄GEN (ADD) - Button
- Click the DURCHSUCHEN (BROWSE) - Button
- Choose the directory where dbm.pas and dbm.dcr were copied to.
- Select dbm.pas
- Click on the ╓FFNEN (OPEN) - Button
- After installation, you will find Tdbmeter in the samples-folder.
2.Usage
Since Tdbmeter is a descendant of TGraphicControl, it can't get the focus, but it can handle mouse-events.
Now something about the propertys:
- Position : The current position ( see GreenMax,YellowMax and RedMax);
- Greens,Yellows,Reds : The number of green,yellow and red LED's.
- GreenColor,YellowColor,RedColor : The ON-Color of the green,yellow,red LED's (What could they be by default ?)
- GreenBack,YellowBack,RedBack : The OFF-Color of the digits (clGray by default)
- GreenMax : an example:
If Greens is set to 5 and GreenMax to 50, then a position between 5 and 50 will be displayed as a
green LED.
(then a value from 1 to 10 switches the first green digit ON, 11-20 the second and so on...)
- YellowMax : a position between greenmax+1 and greenmax+yellowmax will be turn a yellow LED ON.
- RedMax : a position between (greenmax+yellowmax+1) and (greenmax+yellowmax+redmax) will be partitioned in the region
of the red LEDs. Any higher position will be displayed in the last red LED, too.
- ShowJustOne : If this is set to true, just that LED will be ON, that matches the position-property.
Otherwise, all LED's from the first up to that will be ON.
- SepColor : The color of the separator-line between each digit.
- SepWidth : the width of the separator-line ( 0: no separator)
- Style : dsHorizontal : the digits are in a row
dsVertical : the digits are in a column
- Direction : ddRightDown : the first LED is on the left/on top (depends on style)
ddLeftUp : the first LED is on the right/on the bottom (depends on the style-property, too)
Viel Spa▀ beim Programmieren wⁿnscht
Markus.